Skip to content

Fix argument type of html.escape and html.unescape#15731

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
max-kamps:html-escape-fix
May 8, 2026
Merged

Fix argument type of html.escape and html.unescape#15731
JelleZijlstra merged 1 commit intopython:mainfrom
max-kamps:html-escape-fix

Conversation

@max-kamps
Copy link
Copy Markdown
Contributor

Fixes #15730

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 1593fa3 into python:main May 8, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stdlib html.escape is annotated as taking AnyStr, but actually crashes when called with bytes

2 participants